import { Module } from '@nestjs/common';
import { UploadService } from './upload.service';
import { UploadController } from './upload.controller';
import { MulterModule } from '@nestjs/platform-express';
import { storageConfig } from '../../config/multerUploadConfig'

@Module({
  // 注册MulterModule模块，并传入配置
  imports: [MulterModule.register(storageConfig)],
  controllers: [UploadController],
  providers: [UploadService],
})
export class UploadModule { }
